<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<script type="text/javascript">
			for (let i = 0; i < 5; i++) {

   			 for (let j = 0; j <= i; j++) {
      				document.write("*")	
   				 }
   				document.write("<br>")
 			}
	</script>
	<script type="text/javascript">
			for (let i = 1;i <= 9; i++) {
				for (let j = 1; j <= i; j++){
					document.write(i + "x" + j + "=" + j * j + "&nbsp&nbsp")
				}
				document.write("<br>")
			}
	</script>
	<script type="text/javascript">
		//1.相亲
		// let a = prompt("请输入身高")
		// let b = prompt("请输入身高")
		// let c = prompt("请输入身高")

		// if(a > 180 && b > 1000 && c > 500){
		// 	alert("性别别卡死")
		// }else if (a > 180 || b > 1000 || c > 500){
		// 	alert("考虑考虑")
		// }else{
		// 	alert("拒绝")
		// }

		// 2.从小到大
		let num1 = Number(prompt("请输入数字1"))
		let num2 = Number(prompt("请输入数字2"))
		let num3 = Number(prompt("请输入数字3"))

		if(num1 > num2){
			if (num1 > num3) {
				if(num2 > num3){
				console.log(num3, num2, num1)
			}else{
				console.log(num2, num3, num1)
			}

		}else{
			console.log(num2,num3,num1)
		}	
		}else{
			if(num2 > num3){
				if(num1 > num3){
					console.log(num3, num1, num2)
				}else{
					console.log(num1,num3,num2)
				}
				
			}else{
				console.log(num1,num2,num3)
			}
		}

		// 3.存钱
		// money = money + money*0.05 = 
		let money = 1000

		for(let i = 1; i <= 5; i++){
			money = money * 1.05
		}

		console.log(money)
		// 4.
		let num = 678
		console.log("百位" + parseInt(num / 100))
		console.log("十位" + parseInt((num / 10) % 10 ))
		console.log("个位" + num % 10)
	</script>
</body>
</html>